package cn.v2tila.rsosa.student.jpa;

import cn.v2tila.rsosa.student.entity.UserEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
 * @author v2tila on 18:22 2019/2/22
 */

public interface UserJPA extends JpaRepository<UserEntity, Integer>
        , JpaSpecificationExecutor<UserEntity> {
    UserEntity findByOpenid(String openid);

    boolean existsByUniqueId(String uniqueId);

    UserEntity findByUniqueId(String uniqueId);

    void deleteByUniqueId(String uniqueId);


}
